package com.yunxi.sto.service;

import com.github.pagehelper.PageInfo;
import com.yunxi.sto.pojo.StoStockInPlanResponseVO;
import com.yunxi.sto.pojo.StoStockInQueryVO;
import com.yunxi.sto.pojo.StoStockInVO;

import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.List;

public class StoStockInDubboServiceMock implements  StoStockInDubboService {
    @Override
    public StoStockInVO getById(String id) throws InvocationTargetException, IllegalAccessException {
        StoStockInVO vo =  new  StoStockInVO();
        vo.setStockInNo("暂无数据");
        return vo;
    }

    @Override
    public void saveOrUpdate(StoStockInVO stoStockInVO) throws InvocationTargetException, IllegalAccessException {

    }

    @Override
    public void removeById(String id) {

    }

    @Override
    public PageInfo<StoStockInPlanResponseVO> findPageByVO(StoStockInQueryVO stoStockInQueryVO, Integer pageNum, Integer pageSize) throws InvocationTargetException, IllegalAccessException {
        PageInfo<StoStockInPlanResponseVO> page =  new   PageInfo<StoStockInPlanResponseVO>();
        List list  =  new ArrayList();
        StoStockInPlanResponseVO vo =  new StoStockInPlanResponseVO();
        vo.setStorageAreaName("暂无数据");
        list.add(vo);
        page.setList(list);
        return page;
    }
}
